package com.itheima.a10demopolymorphsm;

public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("老王",30);
        Person p2 = new Person("老李",20);
        Animal d = new Dog(2,"黑色");
        Animal c = new Cat(3,"灰色");

        p1.keepPet(d,"骨头");
        p2.keepPet(c,"🐟");
    }
}
